
class rulebound(object):
   
    def __init__(self):
        self.defaltdimensions = ["ether_type","src_ipv4","dst_ipv4","src_ipv6","dst_ipv6","src_mac","dst_mac","tos","proto","src_port","dst_port","tcp_flag","icmp_code"]
        self.dimensions = []
        self.bound = {}#{key:range} ----  string:tuple

    #wildcards = 1110011111100
    def getdimensions(self,wildcards = None,*args):
    	self.dimensions = []
    	if wildcards != None:
	    	for i in range(0,len(wildcards)):
	    		if(wildcards[i] == '1'):
	    			self.dimensions.append(self.defaltdimensions[i]);
	else:
		self.dimensions = args[]
    def getbound(self,**kwargs):
    	self.bound = kwargs #deepcopy? no need

